package com.zp.imagecompresspractice.Luban;

import java.io.File;

/**
 * Created by izp on 2017/6/5.
 */

public interface OnCompressListener {
    /**
     * Fired when the compression is started, override to handle in your own code
     * 发射在压缩期间启动，覆盖处理在您自己的代码
     */
    void onStart();

    /**
     * Fired when a compression returns successfully, override to handle in your own code
     * 在压缩期间发射成功返回，覆盖处理在您自己的代码
     */
    void onSuccess(File file);

    /**
     * Fired when a compression fails to complete, override to handle in your own code
     * 在压缩期间未能完成发射，自己的代码中覆盖处理
     */
    void onError(Throwable e);
}
